var androidId = device.getAndroidId();
console.log("Android ID: " + androidId);
var androidIdArray=[
	
["d717353ad6f5cb19","2055-06-05"],//三星S23
["6729e03b8a72a33b","2055-06-05"],//nova5pro
["4ac827ca93ae090c","2055-06-05"],//mumu模拟器30
["52c866f1fc134cb7","2055-06-05"],//mumu模拟器33
["b3c1b76511caf2c1","2055-06-05"],//mumu模拟器31
["361d835180607fb2","2055-06-05"],//mumu模拟器343536
["d444a9e8f583ea53","2055-06-05"],//mumu模拟器测试xcxjdy
["9a8d868587da04e5","2055-06-05"],//真我q2(2340*1080)
["28a49e42e93ff721","2055-06-05"],//mumu模拟器3738
["332365c13663cc5b","2055-06-05"],//mumu模拟器CS01
["cac7caae2e7f023e","2055-06-05"],//mumu模拟器CS02
["beda934e071c9312","2055-06-05"],//mumu模拟器CS03
["9c468367c5309304","2055-06-05"],//mumu模拟器CS04-fly笔记本电脑
["afafe839df1da76b","2055-06-05"],//mumu模拟器CS04-fly笔记本电脑V6版本测试

["dc01390766e4416c","2055-06-05"],//mumu模拟器x-zhu30(默认的老鱼获取不到网络弃用)
["51483836c5734b38","2055-06-05"],//mumu模拟器x-zhu30(新的)

["e3d28bad4a8c0c94","2055-06-05"],//mumu模拟器x-zf30，旧的找不到了暂时不删
["d16d4a071d74c586","2055-06-05"],//mumu模拟器x-zf30,新的

["1d0765066d67ec45","2055-06-05"],//mumu模拟器x-zf31
["0fbd50abcc46312d","2055-06-05"],//mumu模拟器x-zf32
["b297bd902871be5c","2055-06-05"],//mumu模拟器x-zf33
["17093dbe7c68949f","2055-06-05"],//mumu模拟器x-zf34
["d19107d04f82d2ee","2055-06-05"],//mumu模拟器x-zf35
["522d425bf416bea0","2055-06-05"],//mumu模拟器x-zf36
["14299962da469e1","2055-06-05"],//mumu模拟器x-zf37
["1d817bc0aff04f83","2055-06-05"],//mumu模拟器x-zf38
["995d825240fcf3fc","2055-06-05"],//mumu模拟器x-zf39
["57fe823e41fdb45f","2055-06-05"],//mumu模拟器x-zf40
["feca16afa954a247","2055-06-05"],//mumu模拟器x-z41
["6cb5ba3e4f676024","2055-06-05"],//mumu模拟器x-zf42
["1c45472e44067ba9","2055-06-05"],//mumu模拟器x-zf43
["345b665fe1911543","2055-06-05"],//mumu模拟器x-zf44
["86e68a606f437f0c","2055-06-05"],//mumu模拟器x-zf45
["75a40ef34fd09eca","2055-06-05"],//mumu模拟器x-zf46
["ce40fd4638d48670","2055-06-05"],//mumu模拟器x-zf47
["a6df6a647fc03b90","2055-06-05"],//mumu模拟器x-zf48
["540afa746c3d0bb9","2055-06-05"],//mumu模拟器x-zf49

["19f7900b738b0c1f","2055-06-05"],//mumu模拟器x-zf50
["ccc74d5106788729","2055-06-05"],//mumu模拟器x-zf51
["c984760ad4906411","2055-06-05"],//mumu模拟器x-zf52
["618d40e93ae9ac3f","2055-06-05"],//mumu模拟器x-zf53
["e84e03e0a2fa3ffb","2055-06-05"],//mumu模拟器x-zf54




["764b62cb0c26cd5b","2025-08-05"],//mumu模拟器x-许文从机2
["fbd027ce7e99e8d9","2025-08-05"],//mumu模拟器x-许文从机3
["97a3b4a95ae39292","2025-08-05"],//mumu模拟器x-许文从机4
["f76b3b91aaad8f52","2025-08-05"],//mumu模拟器x-许文从机5
["5682607df5b0e4b4","2025-08-05"],//mumu模拟器x-许文主机01
["ae642c4799dfd634","2025-08-05"],//mumu模拟器x-许文主号01
["5afec49a9412dc95","2025-08-05"],//mumu模拟器x-许文主机06
["9209e9bba54559ba","2025-08-05"],//mumu模拟器x-许文从机07
["3280063eb52afd92","2025-08-05"],//mumu模拟器x-许文从机08
["9258b75564af67b1","2025-08-05"],//mumu模拟器x-许文从机09
["d21b89f9b7e7aac6","2025-08-05"],//mumu模拟器x-许文从机10

["91bb24b75978bbb2","2055-06-05"],//mumu模拟器x-潘东亮_ldn_2025主号0201
["f7db8f59d7a158fe","2055-06-05"],//mumu模拟器x-潘东亮_ldn_2025从机号0201
["d8da1cbde46da4c6","2055-06-05"],//mumu模拟器x-潘东亮_ldn_2025从机号0202chaduzhongsheng
["844968be2c4653eb","2055-06-05"],//mumu模拟器x-潘东亮_ldn_2025从机号0203
["26ef5730740c578b","2055-06-05"],//mumu模拟器x-潘东亮_ldn_2025从机号0204






["43aadad45635a701","2055-06-05"],//mumu模拟器x-潘东亮_ldn_02晴天1
["99977505603b5bf8","2055-06-05"],//mumu模拟器x-潘东亮_ldn_02晴天2
["65d58f134ead6e4c","2055-06-05"],//mumu模拟器x-潘东亮_ldn02晴天3
["5a4d9ed41d609b89","2055-06-05"],//mumu模拟器x-潘东亮_ldn_02晴天4

["44dd57e7ffc0a80a","2055-06-05"],//mumu模拟器x-潘东亮_ldn_02晴天7







["56a50aa5578e0d1c","2055-06-05"],//mumu模拟器x-潘东亮_xdn_02万里魔王1主机
["024e07ee9e899bb3","2055-06-05"],//mumu模拟器x-潘东亮_xdn_02万里地府1
["d3f384115fb3f8aa","2055-06-05"],//mumu模拟器x-潘东亮_xdn_02万里女儿1
["529a40a32b326418","2055-06-05"],//mumu模拟器x-潘东亮_xdn_02万里大唐1
["e86d8604b542cab3","2055-06-05"],//mumu模拟器x-潘东亮_xdn_02万里女花生1



["ac1b3630e37e36c3","2055-06-05"],//mumu模拟器x-潘东亮_xdn_02万里化生2
["4bedf2d31bc2f409","2055-06-05"],//mumu模拟器x-潘东亮_xdn_02万里女儿2
["16394838b3019c27","2055-06-05"],//mumu模拟器x-潘东亮_xdn_02万里猴子2
["62ca2749a36138ca","2055-06-05"],//mumu模拟器x-潘东亮_xdn_02万里魔王2
["6c53069d2f74864d","2055-06-05"],//mumu模拟器x-潘东亮_xdn_02万里龙宫主机2

["fb706936ed5859e3","2055-06-05"],//mumu模拟器x-潘东亮_xdn_全军4
["637123e873eb9cb9","2055-06-05"],//mumu模拟器x-潘东亮_xdn_全军6地府
["29b4aa07324ad006","2055-06-05"],//mumu模拟器x-潘东亮_xdn——全军主
["38245b2f3bdb3ba5","2055-06-05"],//mumu模拟器x-潘东亮_xdn_全军猴子
["1d928a37ed2d411f","2055-06-05"],//mumu模拟器x-潘东亮_xdn_全军花生

["0d60046bfea16394","2055-06-05"],//mumu模拟器x-潘东亮_
["6a67db1028e5be1a","2055-06-05"],//mumu模拟器x-潘东亮_

["bf2d050f8f096639","2050-06-05"],//mumu模拟器-fly-测试01
["a65d6eb59c783a7c","2025-09-10"],//mumu模拟器-周峰-测试01
["c50a23667ec7c69c","2025-09-10"],//mumu模拟器-周峰-测试02
["f66e2e778e60fe72","2025-09-10"],//mumu模拟器-周峰-测试03
["8d6a03af0dbddb7f","2055-06-05"]//leishen模拟器x-01



];

/*

*/



function androidIdState(androidIdTemp){
	var stateTemp = false;
	for(var i=0;i<androidIdArray.length;i++){ 
		if(androidIdTemp==androidIdArray[i][0]){
			if(!isExpired(androidIdArray[i][1])){
				stateTemp = true;
			}
		}  
	}
	return stateTemp;
	
}


var 授权码=(
androidIdState(androidId)
)

/* 
var 授权码=(
  androidId=="d717353ad6f5cb19"//三星S23
||androidId=="6729e03b8a72a33b"//nova5pro
||androidId=="4ac827ca93ae090c"//mumu模拟器30
||androidId=="52c866f1fc134cb7"//mumu模拟器33
||androidId=="b3c1b76511caf2c1"//mumu模拟器31
||androidId=="361d835180607fb2"//mumu模拟器343536
||androidId=="90543542cd133f47"//真我q2(2340*1080)
||androidId=="28a49e42e93ff721"//mumu模拟器3738
||androidId=="332365c13663cc5b"//mumu模拟器CS01
||androidId=="cac7caae2e7f023e"//mumu模拟器CS02
||androidId=="beda934e071c9312"//mumu模拟器CS03
||androidId=="dc01390766e4416c"//mumu模拟器x-zhu30
||androidId=="e3d28bad4a8c0c94"//mumu模拟器x-zf30
||androidId=="1d0765066d67ec45"//mumu模拟器x-zf31
||androidId=="0fbd50abcc46312d"//mumu模拟器x-zf32
||androidId=="b297bd902871be5c"//mumu模拟器x-zf33
||androidId=="17093dbe7c68949f"//mumu模拟器x-zf34
||androidId=="d19107d04f82d2ee"//mumu模拟器x-zf35
||androidId=="522d425bf416bea0"//mumu模拟器x-zf36
||androidId=="14299962da469e1"//mumu模拟器x-zf37
||androidId=="1d817bc0aff04f83"//mumu模拟器x-zf38
||androidId=="1d817bc0aff04f83"//mumu模拟器x-zf39
||androidId=="57fe823e41fdb45f"//mumu模拟器x-zf40
||androidId=="feca16afa954a247"//mumu模拟器x-z41
||androidId=="6cb5ba3e4f676024"//mumu模拟器x-zf42
||androidId=="1c45472e44067ba9"//mumu模拟器x-zf43
||androidId=="f85ed4db752d2bc5"//mumu模拟器x-zf44
||androidId=="ce40fd4638d48670"//mumu模拟器x-zf47
||androidId=="a6df6a647fc03b90"//mumu模拟器x-zf48
||androidId=="86e68a606f437f0c"//mumu模拟器x-zf45
||androidId=="8d6a03af0dbddb7f"//leishen模拟器x-01
) */

if (授权码) {
toast("安卓ID:"+androidId+"已授权");
}
else{

    engines.all().map((ScriptEngine) => {
        if (engines.myEngine().toString() !== ScriptEngine.toString()) {
          ScriptEngine.forceStop();
        }
      });
     //engines.execScriptFile(scriptDir+"/悬浮按钮.js");
        var scriptDirTemp = engines.myEngine().cwd();//Auto.js添加脚本文件后，打开创建的脚本文件获取到当前文件目录，然后根据提示的目录，再将脚本压缩包复制到这个目录下，进行解压，再运行当前文件
  console.log("当前文件目录:" + scriptDirTemp);

	toast("当前文件目录:" + scriptDirTemp);
	
      engines.execScriptFile(scriptDirTemp+"/悬浮按钮.js");

      alert("安卓ID:"+androidId+"未授权，请拍照联系作者！");

}


// 比较当前时间与过期时间
function isExpired(expireDate) {
    // 获取当前时间
    const now = new Date();
    // 将过期时间转为Date对象
    const expire = new Date(expireDate);
    // 比较时间戳
    return now.getTime() > expire.getTime();
}

// 使用示例
//const expireDate = '2025-12-31'; // 过期时间
//console.log(isExpired(expireDate)); // 返回true或false

